#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <pthread.h>
#include <sys/types.h>
#include <sys/errno.h>


int main(){

char bufferX[8] = {'a','u', 'r','e','l','i','a','\0'};
char bufferY[7] = "aurelia";

// premiere boucle (on connait le nombre d elements)
printf("---------------------------------------------------------\n");
printf("Affichage de l'initialisation par elements de type char\n");
printf("---------------------------------------------------------\n");
int c;
for (c = 0; c < 8; c++){
	printf("element%d: %d \n", c, bufferX[c]);
}


// premiere boucle (on NE connait PAS le nombre d elements)
printf("---------------------------------------------------------\n");
printf("Affichage de l'initialisation par une string\n");
printf("---------------------------------------------------------\n");
for (c = 0; c < 8; c++){
	//printf("element%d: %d \n", c, bufferY[c]);
	printf("-------------\n");
	printf("id: \t %d \n", c);
	printf("value: \t %d \n", bufferY[c]);

}
	printf("test: \t %d \n", bufferY[7]);
printf("\n");
printf("----- FINISH -------\n");
}
